package com.engine4cloud.tdf.education.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 课程
 *
 * @author wenjie
 * @date 2024-07-30 14:56:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "课程")
public class EduCourseQueryDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 课程编号
     */
    @Schema(description = "课程编号")
    private String code;

    /**
     * 课程名称
     */
    @Schema(description = "课程名称")
    private String name;

    /**
     * 是否必修
     */
    @Schema(description = "是否必修")
    private String isRequired;

    /**
     * 授课类型
     */
    @Schema(description = "授课类型")
    private String progressType;

    /**
     * 教育形式
     */
    @Schema(description = "教育形式")
    private String format;

    /**
     * 是否发布
     */
    @Schema(description = "是否发布", example = "0")
    private String isPublish;

    public EduCourseQueryDTO(String code) {
        this.code = code;
    }

}